package com.springmvc.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.springmvc.web.dao.ILoginDao;
import com.springmvc.web.entity.LoginForm;
import com.springmvc.web.service.ILoginService;

@Service(value="LoginService")
public class LoginServiceImpl implements ILoginService {
 
	@Autowired
	private ILoginDao loginDao;

	@Override
	public int createLogin(LoginForm login) {
		
	  
		  return this.loginDao.createLogin(login);
	}

	@Override
	public LoginForm getByUsername(String username) {
		
		
		return this.loginDao.getByUsername(username);
	}
	
}
